package com.itheima.ai.service;

import com.itheima.ai.entity.po.SpringAiChatMemory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.ai.chat.memory.ChatMemoryRepository;
import org.springframework.ai.chat.messages.Message;
import org.springframework.lang.NonNull;

import java.util.List;

public interface ISpringAiChatMemoryService extends IService<SpringAiChatMemory>, ChatMemoryRepository {

    List<Message> findTopN(@NonNull String conversationId, int size);
}